package com.itheima.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.SmsHomeBrand;
import com.itheima.vo.PageResult;

import java.util.List;

/**
* @author lenovo
* @description 针对表【sms_home_brand(首页推荐品牌表)】的数据库操作Service
* @createDate 2022-10-11 14:26:18
*/
public interface SmsHomeBrandApi{

    //添加品牌
    void createBrand(SmsHomeBrand brand);

    //分页查询品牌
    PageResult findBrands(String brandName, Integer pageNum, Integer pageSize, Integer recommendStatus);

    //修改品牌排序
    void updateSortByid(SmsHomeBrand brand);

    //根据id查询品牌
    SmsHomeBrand findBrandById(Long id);

    //批量删除品牌
    boolean deleteBrands(List<Long> ids);

    //批量修改品牌
    boolean updateRecommendStatus(List<Long> ids, Integer recommendStatus);
}
